package com.ly.hotel.adaptor;

import android.os.Build;

import com.ly.hotel.common.Constants;

public class HardwareProperty {

	//获取支持的视频格式
	public static String[] getSupportVodFormat(){

		String[] ada801 = {"mkv", "rmvb", "rm"};
		String[] ada628 = {"avi", "mkv", "rmvb", "mp4", "rm", "vob", "mov"};
		String[] defaultValue = {"all"};
		
		if(Build.BOARD.endsWith(Constants.BOARD_TYPE_ADA801_NAME)){
			return ada801;
		}else if(Build.BOARD.endsWith(Constants.BOARD_TYPE_ADA628_NAME)){
			return ada628;
		}
		
		return defaultValue;
	}
	
	//获取支持的最大视频大小
	public static int getSupportVodSize(){

		int ada801 = 2 * 1024;
		int defaultValue = 30 * 1024;
		
		if(Build.BOARD.endsWith(Constants.BOARD_TYPE_ADA801_NAME)){
			return ada801;
		}
		
		return defaultValue;
	}
}
